package file;


import java.io.File;

/**
 * Created with IntelliJ IDEA.
 * Description: File类方法（7）
 * User: 王圆豪
 * Date: 2025-05-10
 * Time: 16:32
 */
public class Demo7 {
    public static void main(String[] args) {
        File file = new File("./test.txt");
        System.out.println(file.canRead());
        System.out.println(file.canWrite());
    }
}
